//package com.acxy.test.controller.sys;
//
//import com.acxy.ants.common.kit.VerifyCodeKit;
//import com.acxy.ants.core.annotation.Aop;
//import com.acxy.ants.core.annotation.Autowired;
//import com.acxy.ants.core.interceptor.CacheInterceptor;
//import com.acxy.ants.resful.annotation.Controller;
//import com.acxy.ants.resful.annotation.GET;
//import com.acxy.ants.resful.annotation.Param;
//import com.acxy.ants.resful.annotation.PathVariable;
//import com.acxy.ants.resful.bind.BindingResult;
//import com.acxy.ants.resful.render.Json;
//import com.acxy.test.entity.Test;
//import com.acxy.test.service.TestServiceImpl;
//import com.alibaba.fastjson.JSON;
//
//import javax.servlet.ServletException;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import javax.servlet.http.Part;
//import java.io.IOException;
//import java.util.ArrayList;
//import java.util.List;
//import java.util.Map;
//
///**
// * @author MrShun
// * @version 1.0
// * @Date 2017-05-04
// */
//@Controller("sys")
//public class SystemController {
//
//
//    @Autowired
//    private TestServiceImpl testService;
//
//
//    public Object login(String[] name, int num, Integer page, boolean[] password, Part[] files, BindingResult result) {
//        System.out.println(JSON.toJSONString(num) + "," + password);
//        return "{true}";
//    }
//
//    @Aop(CacheInterceptor.class)
//    public Object test(@PathVariable("nike") String name, int age, Map map, Test test) {
//        System.out.println(name + "," + age);
//        System.out.println("test:" + JSON.toJSONString(test));
//        System.out.println("name:" + test.getName());
//        List list = new ArrayList<>();
//        list.add(name);
//        list.add(age);
//        list.add(test);
//        return Json.success(list);
//    }
//
//    @GET({"/test2/{name}/{age}", "/test2/{name}-{age}"})
//    public Object test2(@PathVariable String name, @PathVariable Integer age) {
//        System.out.println("##" + JSON.toJSONString(name) + "," + age);
//        return "##" + JSON.toJSONString(name) + "," + age;
//    }
//
//    @GET("/code")
//    @Aop(CacheInterceptor.class)
//    public void code(@Param(value = "^\\+?[1-9][0-9]*$", msg = "this n num suzhi!") String name, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//        System.out.println("#################### 执行验证码 name:" + name);
//        System.out.println("testService:" + testService);
//        VerifyCodeKit.generate(request, response, "ces");
//    }
//}
